home *** CD-ROM | disk | FTP | other *** search
/ Monster Media 1996 #15 / Monster Media Number 15 (Monster Media)(July 1996).ISO / win_utl1 / mbutton.zip / MBUT-DEL.CMD < prev    next >
OS/2 REXX Batch file  |  1996-05-08  |  3KB  |  85 lines

  1. @echo off
  2. if "%1" == "" goto done
  3. if exist "%1\*.*" goto doit1
  4. if exist "%1 %2\*.*" goto doit2
  5. if exist "%1 %2 %3\*.*" goto doit3
  6. if exist "%1 %2 %3 %4\*.*" goto doit4
  7. goto done
  8. :doit4
  9. echo You are about to remove Middle Mouse Button ver 1.9.0
  10. echo from %1 %2 %3 %4
  11. echo. 
  12. yesno Do you wish to continue with this un-install process
  13. if errorlevel 1 goto YES4
  14. goto DONE
  15. :YES4
  16. echo.
  17. if exist "%1 %2 %3 %4\MBUTTON.EXE" "%1 %2 %3 %4\MBUTTON.EXE" -uninstall
  18. if exist "%1 %2 %3 %4\*.TXT" del "%1 %2 %3 %4\*.TXT"
  19. if exist "%1 %2 %3 %4\*.ICO" del "%1 %2 %3 %4\*.ICO"
  20. if exist "%1 %2 %3 %4\*.WRI" del "%1 %2 %3 %4\*.WRI"
  21. if exist "%1 %2 %3 %4\MBUTTON.EXE" del "%1 %2 %3 %4\MBUTTON.EXE"
  22. if exist "%1 %2 %3 %4\MBHOOK.DLL" del "%1 %2 %3 %4\MBHOOK.DLL"
  23. rd "%1 %2 %3 %4"
  24. goto done1
  25. :doit3
  26. echo You are about to remove Middle Mouse Button ver 1.9.0
  27. echo from %1 %2 %3
  28. echo. 
  29. yesno Do you wish to continue with this un-install process
  30. if errorlevel 1 goto YES3
  31. goto DONE
  32. :YES3
  33. echo.
  34. if exist "%1 %2 %3\MBUTTON.EXE" "%1 %2 %3\MBUTTON.EXE" -uninstall
  35. if exist "%1 %2 %3\*.TXT" del "%1 %2 %3\*.TXT"
  36. if exist "%1 %2 %3\*.ICO" del "%1 %2 %3\*.ICO"
  37. if exist "%1 %2 %3\*.WRI" del "%1 %2 %3\*.WRI"
  38. if exist "%1 %2 %3\MBUTTON.EXE" del "%1 %2 %3\MBUTTON.EXE"
  39. if exist "%1 %2 %3\MBHOOK.DLL" del "%1 %2 %3\MBHOOK.DLL"
  40. rd "%1 %2 %3"
  41. goto done1
  42. :doit2
  43. echo You are about to remove Middle Mouse Button ver 1.9.0
  44. echo from %1 %2
  45. echo. 
  46. yesno Do you wish to continue with this un-install process
  47. if errorlevel 1 goto YES2
  48. goto DONE
  49. :YES2
  50. echo.
  51. if exist "%1 %2\MBUTTON.EXE" "%1 %2\MBUTTON.EXE" -uninstall
  52. if exist "%1 %2\*.TXT" del "%1 %2\*.TXT"
  53. if exist "%1 %2\*.ICO" del "%1 %2\*.ICO"
  54. if exist "%1 %2\*.WRI" del "%1 %2\*.WRI"
  55. if exist "%1 %2\MBUTTON.EXE" del "%1 %2\MBUTTON.EXE"
  56. if exist "%1 %2\MBHOOK.DLL" del "%1 %2\MBHOOK.DLL"
  57. rd "%1 %2"
  58. goto done1
  59. :doit1
  60. echo You are about to remove Middle Mouse Button ver 1.9.0
  61. echo from %1
  62. echo. 
  63. yesno Do you wish to continue with this un-install process
  64. if errorlevel 1 goto YES1
  65. goto DONE
  66. :YES1
  67. echo.
  68. if exist "%1\MBUTTON.EXE" "%1\MBUTTON.EXE" -uninstall
  69. if exist "%1\*.TXT" del "%1\*.TXT"
  70. if exist "%1\*.ICO" del "%1\*.ICO"
  71. if exist "%1\*.WRI" del "%1\*.WRI"
  72. if exist "%1\MBUTTON.EXE" del "%1\MBUTTON.EXE"
  73. if exist "%1\MBHOOK.DLL" del "%1\MBHOOK.DLL"
  74. rd "%1"
  75. :done1
  76. echo.
  77. echo Middle Mouse Button ver 1.9.0 has been removed.
  78. echo.
  79. echo You will need to manually delete any program groups
  80. echo or icons which relate to this application.
  81. echo.
  82. pause
  83. :done
  84. EXIT
  85.